﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer.Model.Repositories.Abstract;
using BusinessLayer.Model.Services.Abstract;
using BusinessLayer.Model.Services.Concrete;
using DataAccess.Repositories;
using DataAccess.Services;

public partial class IntecnologiaMasterPage : System.Web.UI.MasterPage
{
    protected IEnumerable<BusinessLayer.Model.Entities.News> _newsList;

    private INewsRepository _newsRepository = new NewsRepository();
    private IGalleryService _galleryService = new GalleryService();

    protected void Page_Load(object sender, EventArgs e)
    {
        _newsList = _newsRepository.FetchLastNews(5);
    }

    protected string GetBannerTag()
    {
        return _galleryService.GetBannerTags();
    }

}
